package com.nextgen.bean;

import java.util.Date;

import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import com.nextgen.helper.DateSerializer;

@Document(collection = "sellersCategory")
public class SellersCategory {
	
		
		@Id
		private String id; // this id is specific to mongo DB
		
		private String sellerId;
		private String sellerName;
		private String category;
		private Date lastUpdated;
		
		@JsonSerialize(using=DateSerializer.class)
		public void setLastUpdated(Date lastUpdated) {
			this.lastUpdated = lastUpdated;
		}
		public Date getLastUpdated() {
			return lastUpdated;
		}

		public String getSellerId() {
			return sellerId;
		}
		public void setSellerId(String sellerId) {
			this.sellerId = sellerId;
		}
		public String getSellerName() {
			return sellerName;
		}
		public void setSellerName(String sellerName) {
			this.sellerName = sellerName;
		}
		public String getCategory() {
			return category;
		}
		public void setCategory(String category) {
			this.category = category;
		}
		
}
